package com.gcxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author wlp
 * @since 2023-12-19
 */
@ApiModel(value = "Pen对象", description = "")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Pen implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("圈舍编号")
      @TableId(value = "pen_id", type = IdType.AUTO)
    private Integer penId;

    @ApiModelProperty("圈舍名称")
    private String penName;

    @ApiModelProperty("存栏量")
    private Integer penAmount;

    @ApiModelProperty("状态")
    private Integer penState;

    @ApiModelProperty("牧场编号")
    private Integer ranchId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;


}
